#ifndef File_h
#define File_h


class File_T
{
public:
	HANDLE _hFile;

public:
	File_T(const char * szFilename, DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationDisposition, bool moveToEnd);
	~File_T();

public:
	void Read(unsigned char * pb, unsigned int len);
	void Write(const char * sz);
	void Write(unsigned char * pb, unsigned int len);

public:
	static unsigned int GetSize(const char * szFilename);
	static bool Exists(const char * szFilename);
	
};

#endif //File_h